import { User } from "src/user/entities/user.entity";
import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from "typeorm";

@Entity()
export class Role {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    role_name: string;

    @Column()
    description: string;

    @Column({ type: "longtext" })
    routes: string

    @OneToMany(() => User, user => user.role)
    user: User[];
}